package cc.imos.medium;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.NotBlank;

import javax.validation.constraints.AssertTrue;

/**
 * <pre>
 * 登录体
 * Created by asher on 2017/4/9.
 * </pre>
 */
@Data
@ApiModel(value = "登录请求对象")
public class LoginArgs {

    @NotBlank(message="账号必填")
    @ApiModelProperty(value = "用户账号", required = true, example = "admin")
    private String keyword;

    @NotBlank(message = "密码必填")
    @ApiModelProperty(value = "用户密码", required = true, example = "888888")
    private String password;

    @AssertTrue(message = "标识必须为 true")
    @ApiModelProperty(value = "用户标识", hidden = true)
    private Boolean flag;
}
